package cn.mazexal.examapi.models.redisKeys;

/**
 * @author: Mazexal
 * Date: 2025/5/12
 */
public class RedisCommonKey {

    public static final String keyValue = "KEY";

    private static final String PREFIX = "common:";

    public static final String INIT_CONFIG = PREFIX + "initConfig";

    public static String getCardMenuKey(Long examBankId) {
        return PREFIX + "cardMenu:" + examBankId;
    }

    public static String getCardMenuKeyOrg(Long examBankId, Integer questionType) {
        return PREFIX + "cardMenuOrg:" + examBankId + ":" + questionType;
    }

    public static String getVideoMenuKey(Long examBankId) {
        return PREFIX + "videoMenu:" + examBankId;
    }

    public static String getSubMenuIdsKey(Long examBankId, Long menuId) {
        return PREFIX + "subMenuIds:" + examBankId + ":" + menuId;
    }

    public static String getMainCardMenuKey(Long examBankId) {
        return PREFIX + "mainCardMenu:" + examBankId;
    }

    public static String getQuestKey(String requestId) {
        return PREFIX + "quest:" + requestId;
    }

    public static String getVersionCheckKey(Long channelId, Integer version) {
        return PREFIX + "versionCheck:" + channelId + ":" + version;
    }



    public static String getVipPriceConfigListKey(Long channelId) {
        return PREFIX + "vipPriceConfigList:" + channelId;
    }

    public static String getSysBroadcastKey(Long channelId, Integer version) {
        return PREFIX + "sysBroadcast:" + channelId + ":" + version;
    }

    public static String getOssConfigKey() {
        return PREFIX + "ossConfig";
    }
}
